package com.rbac.web.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author gengaoliu
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "赋予角色权限参数")
public class RolePermissionAddReq {
  @Schema(description = "roleId")
  @NotNull(message = "roleId cannot be null")
  private Integer roleId;

  @Schema(description = "permissionIds")
  @NotNull(message = "permissionIds cannot be null")
  private List<Integer> permissionIds;
}
